﻿#region Copyrigth and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ucenter
 * ==============================================================================*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UCenter.DataProvider;
using UCenter.Core.Repository;
using UCenter.Models;

namespace UCenter.SQLServerProvider {
    public class VerifyCodeRepository : IVerifyCodeRepository {
        #region Fields

        #endregion

        #region Constructors

        #endregion

        #region 属性

        #endregion

        #region Events

        #endregion

        public bool Create(UCenter.Models.VerifyCode code) {
            using (RepositoryContext ctx = new RepositoryContext()) {
                ctx.GetTable<VerifyCode>().InsertOnSubmit(code);
                ctx.SubmitChanges();
            }
            return true;
        }
    }
}
